@extends('layouts.master')

@section("css")
    @parent
    <link rel="stylesheet" type="text/css" href="/css/pages/create.css">
@stop

@section("body")
@include("components.left")
    <div class="create_content">
        <div class="create_title">
            <img src="/images/houtaianliku_12.png">
            添加患者
        </div>
        <div class="create_box">
            <div class="rol_div">
                <div class="label_div">
                    案例类型
                </div>
                <div class="input_div">
                    <select id="case_type" class="case_type">
                        <option>--请选择--</option>
                        @foreach($caseTypes as $caseType)
                            <option value="{{$caseType['type_name']}}">{{$caseType['type_name']}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    标题
                </div>
                <div class="input_div">
                    <input id="title" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    简要
                </div>
                <div class="input_div">
                    <input id="desc" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    发病史
                </div>
                <div class="input_div">
                    <input id="history" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    姓名
                </div>
                <div class="input_div">
                    <input id="name" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    年龄
                </div>
                <div class="input_div">
                    <input id="age" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    性别
                </div>
                <div class="input_div">
                    <input type="radio" name="sex" value="1"><div class="radio_text">男</div>
                    <input type="radio" name="sex" value="0"><div class="radio_text">女</div>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    省份
                </div>
                <div class="input_div">
                    <select id="province">
                        <option>--请选择--</option>
                        @foreach($provinces as $province)
                            <option value="{{$province['id']}}">{{$province['province_name']}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    城市
                </div>
                <div class="input_div">
                    <select id="city">
                        <option>--请先选择省份--</option>
                    </select>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    治疗方式
                </div>
                <div class="input_div">
                    <input id="manner" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    手术时间
                </div>
                <div class="input_div">
                    <input id="time" type="date" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    身高
                </div>
                <div class="input_div">
                    <input id="height" type="text" name="">
                </div>
                <div class="unit_div">
                    CM/厘米
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div" style="vertical-align: top;margin-top: 0.1rem;">
                    案例图片
                </div>
                <div id="img-wrapper1" class="input_div">
                    <div class="img_div">
                        <img id="cn_img1" src="/images/houtaianliku_02.png">
                    </div>
                    <div id="upload1_btn" class="upload_btn">
                        上传图片
                    </div>
                    <input type="file" id="upload1" style="display:none">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div" style="vertical-align: top;margin-top: 0.1rem;">
                    个案介绍
                </div>
                <div class="input_div">
                    <div id="ueditor" class="edui-default">
                        @include('UEditor::head')
                    </div>
                </div>
            </div>
        </div>
        <div class="create_title">
            <img src="/images/houtaianliku_12.png">
            术前记录
        </div>
        <div class="create_box">
            <div class="rol_div">
                <div class="label_div">
                    体重
                </div>
                <div class="input_div">
                    <input id="f_weight" type="text" name="">
                </div>
                <div class="unit_div">
                KG/千克/公斤
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    BMI值
                </div>
                <div class="input_div">
                    <input id="f_bmi" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    血糖
                </div>
                <div class="input_div">
                    <input id="f_gi" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    腰围
                </div>
                <div class="input_div">
                    <input id="f_waistline" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    臀围
                </div>
                <div class="input_div">
                    <input id="f_hipline" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    肥胖等级
                </div>
                <div class="input_div">
                    <select id="f_level">
                        <option>--请选择--</option>
                        @foreach($levels as $level)
                            <option value="{{$level['id']}}">{{$level['level_name']}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div" style="vertical-align: top;margin-top: 0.1rem;">
                    术前图片
                </div>
                <div id="img-wrapper2" class="input_div">
                    <div class="img_div">
                        <img id="cn_img2" src="/images/houtaianliku_02.png">
                    </div>
                    <div id="upload2_btn" class="upload_btn">
                        上传图片
                    </div>
                    <input type="file" id="upload2" style="display:none">
                </div>
            </div>
        </div>
        <div class="create_title">
            <img src="/images/houtaianliku_12.png">
            术后记录
        </div>
        <div class="create_box">
            <div class="rol_div">
                <div class="label_div">
                    体重
                </div>
                <div class="input_div">
                    <input id="r_weight" type="text" name="">
                </div>
                <div class="unit_div">
                KG/千克/公斤
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    BMI值
                </div>
                <div class="input_div">
                    <input id="r_bmi" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    血糖
                </div>
                <div class="input_div">
                    <input id="r_gi" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    腰围
                </div>
                <div class="input_div">
                    <input id="r_waistline" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    臀围
                </div>
                <div class="input_div">
                    <input id="r_hipline" type="text" name="">
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div">
                    肥胖等级
                </div>
                <div class="input_div">
                    <select id="r_level">
                        <option>--请选择--</option>
                        @foreach($levels as $level)
                            <option value="{{$level['id']}}">{{$level['level_name']}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
            <div class="rol_div">
                <div class="label_div" style="vertical-align: top;margin-top: 0.1rem;">
                    术后图片
                </div>
                <div id="img-wrapper3" class="input_div">
                    <div class="img_div">
                        <img id="cn_img3" src="/images/houtaianliku_02.png">
                    </div>
                    <div id="upload3_btn" class="upload_btn">
                        上传图片
                    </div>
                    <input type="file" id="upload3" style="display:none">
                </div>
            </div>
        </div>
        <div class="btn_div">
            <div class="create_btn">
                新建
            </div>
        </div>
    </div>

@stop

@section("js")
    @parent

    <script type="text/javascript" src="/js/pages/case/create.js"></script>
    <script id="ueditor"></script>
    <script>
        var ue=UE.getEditor("ueditor");
    </script>
@stop